package org.budo.support.lang.comparator;

import java.util.Map;

/**
 * @author lmw
 */
public class MapComparator extends FieldComparator {
    public MapComparator(String key) {
        super(key);
    }

    @Override
    protected Object getFieldValue(Object target, String fieldName) {
        Map<?, ?> map = (Map<?, ?>) target;
        return map.get(fieldName);
    }
}